﻿package com.esm.utils;

import java.io.PrintWriter;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;




/**
 * 
 * @author 王文成
 *
 */


public class PrintWriterUtil {
	
	public static void flushJoAndClosePrintWriter(PrintWriter pw,JSONObject jo)
	{
		pw.write(jo.toString());
		pw.flush();
		pw.close();
	}
	public static void flushJaoAndClosePrintWriter(PrintWriter pw,JSONArray jao)
	{
		pw.write(jao.toString());
		pw.flush();
		pw.close();
	}

}
